layui.define(['element', 'api'], function(exports) {
	"use strict";

	/**
	 * Button component
	 * */
	var MOD_NAME = 'resource_api',
		$ = layui.jquery,
        api = layui.api
    ;

	var resource_api = {
       
        get : function(path){
            var resourceData;
            api.get({
                enableRootPath: true,
                url: "resource",
                data: {path:path},
                async: false,
                success: function(data){
                    resourceData = data;
                }
            });

            return resourceData;
        }
    }



    exports(MOD_NAME, resource_api);
});
